package com.china.zhuoyue.api.core;

import com.china.zhuoyue.api.core.base.IResult;

public class WrapResultBean implements IResult<Object> {
    private static final int SUCCESS = 0;
    private int code = -1;
    private String msg = null;
    private String data = null;

    @Override
    public boolean isOk() {
        return code == SUCCESS;
    }

    @Override
    public Object getTData() {
        return data;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
